home *** CD-ROM | disk | FTP | other *** search
- #!/bin/sh
- #
- # Look for a specific process
- pidproc() {
- pid=`/usr/bin/ps -ef |
- /usr/bin/grep $1 |
- /usr/bin/grep -v grep |
- /usr/bin/awk '{print $2}'`
- }
-
- # If there is another lava proces running, kill it first...
- pidproc 'lava'
- if [ "$pid" != "" ]; then
- kill -9 $pid;
- fi
- /bin/sleep 1
- #
- #
- #
- cd ../
- ULTRA_PACK_HOME=`pwd`
- echo $ULTRA_PACK_HOME
- SOLIDIFIERHOME=$ULTRA_PACK_HOME/solidifier
- XGLHOME=/opt/SUNWits/Graphics-sw/xgl
- XILHOME=/opt/SUNWits/Graphics-sw/xil
- LD_LIBRARY_PATH=$XGLHOME/lib:$XILHOME/lib:/usr/openwin/lib:/usr/lib:$LD_LIBRARY_PATH
- PATH=$SOLIDIFIERHOME/bin:$PATH
- export ULTRA_PACK_HOME SOLIDIFIERHOME PATH LD_LIBRARY_PATH
- cd $SOLIDIFIERHOME/bin
- $SOLIDIFIERHOME/bin/lava
-